#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include <QTcpServer>
#include <QTcpSocket>
#include <QMessageBox>
#include <QFileDialog> // 文件对话框
#include "userinfo.h"

namespace Ui {
class Dialog;
}

class Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog(QWidget *parent = 0);
    ~Dialog();
    void setInfo(QTcpSocket * s,QString name);

private:
    Ui::Dialog *ui;
    QTcpSocket * socket = NULL;
    QString username;
};

#endif // DIALOG_H
